export default function Demo(props) {
  // 函数组件没有this
  const buy = () => {
    console.log(this);
  }
  return (
    <div>
      <h3>函数组件</h3>
      <div>{props.car}</div>
      <div>{props.money}</div>
      <div>{props.check ? '是' : '否'}</div>
      <div>父传子的input的值:{props.ipt}</div>
      <button onClick={buy}>买皮肤</button>
    </div>
  )
}